<?php $form = $this->beginWidget('CActiveForm') ?>
<table>
    <tr>
        <td><?php echo $form->labelEx($login, 'username') ?></td>
        <td><?php echo $form->textField($login, 'username') ?></td>
        <td><?php echo $form->error($login, 'username') ?></td>
    </tr>
    <tr>
        <td><?php echo $form->labelEx($login, 'password') ?></td>
        <td><?php echo $form->passwordField($login, 'password') ?></td>
        <td><?php echo $form->error($login, 'password') ?></td>
    </tr>
    <tr>
        <td><?php echo $form->checkBox($login, 'rememberMe') ?></td>
        <td><?php echo $form->labelEx($login, 'rememberMe') ?></td>
        <td><?php echo $form->error($login, 'rememberMe') ?></td>
    </tr>
    <tr>
        <td >
            <?php echo $form->labelEx($login, 'verifyCode') ?></td>
        <td><?php echo $form->textField($login, 'verifyCode') ?>
            <?php $this->widget('CCaptcha') ?></td>
        <td><?php echo $form->error($login, 'verifyCode') ?></td>
    </tr>
    <tr>
        <td colspan="2"align="center">
            <input type="submit" value="login">
        </td>
    </tr>

</table>
<?php $form = $this->endWidget('CActiveForm') ?>